package API.DAY1;

public class SubStringDemo {//查询指定位置的字符串
    public static void main(String[] args) {
        String a = "www.baidu.com";
        String b = a.substring(4,9);
        System.out.println(b);
        String c = a.substring(4);
        System.out.println(c);
    }
}
